package pojo;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages = "pojo")
public class SpringConfig {

    @Bean
    public Student student6() {
        Student student = new Student();
        student.setId(06);
        student.setName("注解注册");
        student.setScore(77.77);
        return student;
    }

}
